function viewIndex(context) {
  var html = '<html><head><title>Article Index</title><style>dt{font-weight:bold;}</style></head><body>';

  html += '<h1>Synergy Blog</h1>'

  html += '<dl>';
  for (var i=0; i<context.articles.length; i++) {
    var article = context.articles[i];
    html += '<dt>' + article.title + '</dt><dd>' + article.body + '</dd>';
  }
  html += '</dl>';
  
  html += '</body></html>';
  return html;
}